#ifndef VERTEX_TYPES_H
#define VERTEX_TYPES_H
#pragma once

#include <d3dx9.h>

#define D3DFVF_CUSTOMVERTEX (D3DFVF_XYZ|D3DFVF_DIFFUSE)

struct CUSTOMVERTEX
{
	float32 x, y, z;
	DWORD color;
	static unsigned int getFlags()
	{
		return D3DFVF_CUSTOMVERTEX;
	}
};

struct CUSTOMVERTEX2
{
	D3DXVECTOR3 pos;
	DWORD color;
	static unsigned int getFlags()
	{
		return D3DFVF_CUSTOMVERTEX;
	}
};

struct SCREEN_COLOR_VERTEX
{
	float x, y, z, w;
	DWORD color;
    float u, v; 
	static unsigned int getFlags()
	{
		return(D3DFVF_XYZRHW|D3DFVF_DIFFUSE|D3DFVF_TEX1);
	}
};


#endif // VERTEX_TYPES_H